#include "dialog.h"
Dialog::Dialog()
{
    QPushButton* button = new QPushButton("close",this);
    QLabel* label = new QLabel("this is a label",this);
    QVBoxLayout* layout = new QVBoxLayout(this);
    layout->addWidget(button);
    layout->addWidget(label);
    connect(button,&QPushButton::clicked,this,&Dialog::handle);
}

void Dialog::handle()
{
   close();
}
